            <div class="box">
                <% if @post.class == CommonPost -%>
                    <% form_tag admin_common_post_path(@post.community.district, @post.community, @post), :method => :put do -%>
                        <%= render :partial => 'postForm' %>
                        <%= submit_tag '提交' %>  或者 <%= link_to '取消', admin_common_post_path(@post) %>
                    <% end -%>
                <% end -%>
                <% if @post.class == GroupPost -%>
                    <% form_tag admin_group_post_path(@post.group, @post), :method => :put do -%>
                        <%= render :partial => 'postForm' %>
                        <%= submit_tag '提交' %>  或者 <%= link_to '取消', admin_group_post_path(@post) %>
                    <% end -%>
                <% end -%>
                <% if @post.class == SitePost -%>
                    <% form_tag admin_site_post_path(@post.site, @post), :method => :put do -%>
                        <%= render :partial => 'postForm' %>
                        <%= submit_tag '提交' %> 或者 <%= link_to '取消', admin_site_post_path(@post) %>
                    <% end -%>
                <% end -%> 
            </div>

